/*
 *  kitButton.h
 *  xboxControllers
 *
 *  Created by Arne Boon on 4/3/10.
 *  Copyright 2010 __MyCompanyName__. All rights reserved.
 *
 */

#ifndef _KIT_BUTTON
#define _KIT_BUTTON

#include "ofMain.h"
#include "ofxTimer.h"

#define COUNTER_END		4		//timing visualisation active pad

//--------------------------------------------
class kitButton : public ofBaseApp {
	
	//--------------------------------------------
	public:
	
		kitButton();
		~kitButton();
		
		void setup();
		void setup(uint r, uint g, uint b, uint size, uint res, uint x, uint y);

		void update();
		void draw();
		
		void setColor(uint r, uint g, uint b);
		void setCircle(uint s, uint r);
		void setPosition(uint x, uint y);
		void toggleActive();
	
		ofPoint pos;
	
	//--------------------------------------------
	private:
	
		TimedCounter* counter;
	
		bool isActive;
		uint cActive;
		uint cPassive;
		
		
		ofColor color;
		uint circleSize;
		uint circleRes;
};

#endif